from django.test import TestCase

# Create your tests here.
import re


str01 = "/student/"

str02 = "/student/edit/"
str03 = "/student/add/"
str04 = "/student/del/"
str05 = "/student/ddl/"
str06 = "/student/list/"


re_str = "^" + str01 + '(add/|edit/|del/|list/)$'

print(re.match(re_str, str02))
print(re.match(re_str, str03))
print(re.match(re_str, str04))
print(re.match(re_str, str05))
print(re.match(re_str, str06))